<?php


namespace app\cuisine\model;


use think\Model;
use think\model\concern\SoftDelete;

class NewsModel extends Model
{
    use SoftDelete;
    protected  $name = 'news';
    //更新时间戳
    // protected $autoWriteTimestamp = 'datetime';
    protected $deleteTime = 'delete_time';
    //获取数据
    public function getSwitchArr($value){
        $statuc = ['1'=>'是','2'=>'否'];
        return $statuc[$value];
    }
}